import service from '@/utils/request'
/**
 * 医院
 */
const HospitalApi ={
    addHospital: function (data) {
        return service.post('hospital', data);
    },
    editHospital: function (data) {
        return service.put('hospital', data);
    },
    deleteHospital: function (data) {
        return service.delete('hospital', {params: data });
    },
    getHospital: function (data) {
        return service.get('hospital',{ params: data });
    },
    getHospitalList: function (data) {
        return service.get('hospitals',{ params: data });
    },
    getAllHospital: function (data) {
      return service.get('hospital/all',{ params: data });
    },
    getHospitalByInstitution: function (data) {
      return service.get('hospital/byInstitution',{ params: data });
    },
    getHospitalNameList: function (data) {
        // 获取医院名字列表
        return service.get('hospital/hospitalName',{ params: data });
    },
    createHsHb: function (data) {
      // 创建核酸海报
      return service.get('hospital/createHsHb',{ params: data });
    }
}

export default HospitalApi
